package com.example.iceserverdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import person.jianglong.common.utils.ApplicationUtil;
import person.jianglong.common.utils.LogUtil;
import person.jianglong.common.utils.ProcessUtil;

@SpringBootApplication
public class IceServerDemoApplication {

    public static SpringApplication app;

    public static void main(String[] args) {
        LogUtil.info("Hello IceServerDemoApplication");
        app = new SpringApplication(IceServerDemoApplication.class);
        ApplicationUtil.addStartedListener(app, new Runnable() {
            @Override
            public void run() {
                LogUtil.info("ws://localhost:8085/ice");
                LogUtil.info("http://www.websocket-test.com/");
                LogUtil.info("http://localhost:8085/swagger-ui.html");
                ProcessUtil.open("http://localhost:8085/swagger-ui.html");
                LogUtil.test();
            }
        });

        app.run(args);
    }

}
